package org.dromara.business.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.domain.LzshTemplate;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.List;

/**
 * 表单管理业务对象 lzsh_template
 *
 * @author Lion Li
 * @date 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LzshTemplate.class, reverseConvertGenerate = false)
public class LzshTemplateBo extends BaseEntity {

    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 用户信息
     */
    @NotEmpty(message = "用户信息不能为空", groups = { AddGroup.class, EditGroup.class })
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> userInfo;

    /**
     * 套餐表单
     */
    @NotEmpty(message = "套餐表单不能为空", groups = { AddGroup.class, EditGroup.class })
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> plan;


}
